<?php
/* --------------------------------------------------------------
   gm_counter_form.php 2008-07-28 gambio
   Gambio OHG
   http://www.gambio.de
   Copyright (c) 2008 Gambio OHG
   Released under the GNU General Public License (Version 2)
   [http://www.gnu.org/licenses/gpl-2.0.html]
   --------------------------------------------------------------
*/
	defined('_VALID_XTC') or die('Direct Access to this location is not allowed.');

?><?php

	if($_GET['action'] == 'gm_counter_visitor') {

?>


<br />
<input readonly style="width:100px;" name="start-date" id="start-date" class="date-pick dp-applied">
<input readonly style="width:100px;" name="end-date" id="end-date" class="date-pick dp-applied">
<br />
<br />
<input class="button" type="button" value="<?php echo BUTTON_REFRESH;?>" onClick="<?php echo 'gm_get_content(\'' . xtc_href_link('gm_counter_action.php', 'action=gm_counter_visitor&subpage=' . htmlentities($_GET['subpage']) . ''); ?>', 'gm_counter_visitor', '<?php echo xtc_href_link('gm_counter_action.php', 'action=gm_box_submenu_visitor'); ?>')">																									 

<?php

	} else if($_GET['action'] == 'gm_counter_pages') {

?>

<br />
<table border="0" width="100%" cellspacing="0" cellpadding="2">
	<tr>
		<td width="150" class="main" valign="top">
			<?php echo TITLE_PAGE_TYP; ?>
		</td>
		<td class="main" valign="top">
			<select id="gm_type" style="width:120px">																		
				<option value="all"><?php echo TITLE_ALL; ?></option>
				<option value="prd"><?php echo TITLE_PRD; ?></option>
				<option value="cat"><?php echo TITLE_CAT; ?></option>
				<option value="content"><?php echo TITLE_CONTENT; ?></option>
			</select>
		</td>
	</tr>
	<tr>
		<td width="150" class="main" valign="top">
			<?php echo TITLE_COUNT; ?>
		</td>
		<td class="main" valign="top">
			<input id="gm_count" style="width:120px">
		</td>
	</tr>
	<tr>
		<td class="main" valign="top" colspan="2">
			<input class="button" type="button" value="<?php echo BUTTON_REFRESH;?>" onClick="gm_get_content('<?php echo xtc_href_link('gm_counter_action.php', 'action=gm_counter_pages&subpage=' . htmlentities($_GET['subpage']) . ''); ?>', 'gm_counter_pages', '<?php echo xtc_href_link('gm_counter_action.php', 'action=gm_box_submenu_pages&subpage=' . htmlentities($_GET['subpage']) . ''); ?>');">
		</td>
	</tr>
</table>

<?php

	} else if($_GET['action'] == 'gm_counter_user') {

?>

<br />
<table border="0" width="100%" cellspacing="0" cellpadding="2">
	<tr>
		<td width="150" class="main" valign="top">
			<?php echo TITLE_COUNT; ?>
		</td>
		<td class="main" valign="top">
			<input id="gm_count" style="width:120px">
		</td>
	</tr>
	<tr>
		<td class="main" valign="top" colspan="2">
			<input class="button" type="button" value="<?php echo BUTTON_REFRESH;?>" onClick="gm_get_content('<?php echo xtc_href_link('gm_counter_action.php', 'action=gm_counter_user&subpage=' . htmlentities($_GET['subpage']) . ''); ?>', 'gm_counter_user', '<?php echo xtc_href_link('gm_counter_action.php', 'action=gm_box_submenu_user&subpage=' . htmlentities($_GET['subpage']) . ''); ?>');">
		</td>
	</tr>
</table>

<?php

	} else if($_GET['action'] == 'gm_counter_search') {

?>

<br />
<table border="0" width="100%" cellspacing="0" cellpadding="2">
	<tr>
		<td width="150" class="main" valign="top">
			<?php echo TITLE_COUNT; ?>
		</td>
		<td class="main" valign="top">
			<input id="gm_count" style="width:120px">
		</td>
	</tr>
	<tr>
		<td class="main" valign="top" colspan="2">
			<input class="button" type="button" value="<?php echo BUTTON_REFRESH;?>" onClick="gm_get_content('<?php echo xtc_href_link('gm_counter_action.php', 'action=gm_counter_search&subpage=' . htmlentities($_GET['subpage']) . ''); ?>', 'gm_counter_search', '<?php echo xtc_href_link('gm_counter_action.php', 'action=gm_box_submenu_search&subpage=' . htmlentities($_GET['subpage']) . ''); ?>');">
		</td>
	</tr>
</table>

<?php

	} 
?>